<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>

<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<div class="container">
<div style="margin-bottom:100px;text-align: center;vertical-align: middle;padding:40px">
<h3>spring mvc测试工程</h3>
</div>
<div>
<table class="table table-hover">
  <thead>
    <tr>
      <th>#</th>
      <th>Username</th>
      <th></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
  	<c:forEach items="${users }" var="user">
    <tr>
      <td>${user.id }</td>
      <td>${user.loginName }</td>
       <td>${user.email }</td>
        <td>${user.phone }</td>
      <td><a href="${ctx }/delete/${user.id}">删除</a></td>
    </tr>
    </c:forEach>
  </tbody>
</table>
</div>
</div>